#ifndef WECHATCLIENTWIDGET_H
#define WECHATCLIENTWIDGET_H

#include <QWidget>
#include <QUdpSocket>
#include <QHostAddress>
#include <QNetworkDatagram>
#include "type.h"

namespace Ui {
class WechatClientWidget;
}

class WechatClientWidget : public QWidget
{
    Q_OBJECT

public:
    explicit WechatClientWidget(QWidget *parent = nullptr);
    ~WechatClientWidget();

private slots:
    void on_buttonsend_clicked();
    void on_buttonclose_clicked();

private:
    void initWechatClient();
    Ui::WechatClientWidget *ui;
    int currentPort = 8888;
    QUdpSocket *udpsocket;
};

#endif // WECHATCLIENTWIDGET_H
